import type { PlusColumn } from '@wlydfe/pro-ui'

export const tableConfig: PlusColumn[] = [
  {
    label: '金融机构',
    prop: 'financialInstitution',
    hideInSearch: false,
    order: 2,
  },
  {
    label: '网络货运主体',
    prop: 'networkMainBodyName',
    hideInSearch: false,
    order: 20,
  },
  {
    label: '被推送企业',
    prop: 'companyName',
    hideInSearch: false,
    renderHeader: () => '被推送企业名称',
    order: 30,
    fieldProps: {
      placeholder: '请输入被推送企业名称',
    },
  },
  {
    label: '创建时间',
    prop: 'createdDate',
  },
  {
    label: '审核时间',
    prop: 'auditTime',
  },
  {
    label: '白名单结果',
    prop: 'wlistStatus',
    options: wlistStatusOptions,
    hideInSearch: false,
    width: 100,
    valueType: 'select',
  },
  {
    label: '运单查询结果',
    prop: 'waybillQuerySwitch',
    valueType: 'switch',
    editable: true,
    fieldProps: {
      activeValue: '1',
      inactiveValue: '0',
    },
  },
]
